<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Adds an amount of days, months, years, hours, minutes and seconds</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.datetimeimmutable.html">DateTimeImmutable</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="datetimeimmutable.construct.html">DateTimeImmutable::__construct</a></div>
 <div class="up"><a href="class.datetimeimmutable.html">DateTimeImmutable</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="datetimeimmutable.add" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">DateTimeImmutable::add</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0)</p><p class="refpurpose"><span class="refname">DateTimeImmutable::add</span> &mdash; <span class="dc-title">
   Adds an amount of days, months, years, hours, minutes and seconds
  </span></p>

 </div>

 <div class="refsect1 description" id="refsect1-datetimeimmutable.add-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="class.datetimeimmutable.html" class="type DateTimeImmutable">DateTimeImmutable</a></span> <span class="methodname"><strong>DateTimeImmutable::add</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.dateinterval.html" class="type DateInterval">DateInterval</a></span> <code class="parameter">$interval</code></span>
   )</div>

  <p class="para rdfs-comment">
   Like <span class="methodname"><a href="datetime.add.html" class="methodname">DateTime::add()</a></span> but works with
   <a href="class.datetimeimmutable.html" class="classname">DateTimeImmutable</a>.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.datetimeimmutable.html">DateTimeImmutable</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="datetimeimmutable.construct.html">DateTimeImmutable::__construct</a></div>
 <div class="up"><a href="class.datetimeimmutable.html">DateTimeImmutable</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
